import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import uView from '@/uni_modules/uview-ui'
import mpShare from '@/uni_modules/uview-ui/libs/mixin/mpShare'

uni.$u.http.setConfig((config) => {
    /* config 为默认全局配置*/
    // config.baseURL = `http://192.168.50.98`; /* 根域名 */
	config.baseURL = 'https://en.xzdream.cn';
    return config
})

Vue.config.productionTip = false
App.mpType = 'app'
Vue.use(uView)
Vue.mixin(mpShare)

const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif